module SitesHelper
  def site_title_value
    if action_name == "show"
      h @site.title 
    else
      text_field :site, :title
    end
  end

  def site_meta_description_value
    if action_name == "show"
      h @site.meta_description 
    else
      text_area :site, :meta_description
    end
  end

  def site_meta_keywords_value
    if action_name == "show"
      h @site.meta_keywords 
    else
      text_area :site, :meta_keywords
    end
  end

end
